<?php namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\Product
 *
 * @method static bool|null forceDelete()
 * @method static \Illuminate\Database\Query\Builder|\App\Product onlyTrashed()
 * @method static bool|null restore()
 * @method static \Illuminate\Database\Query\Builder|\App\Product withTrashed()
 * @method static \Illuminate\Database\Query\Builder|\App\Product withoutTrashed()
 * @mixin \Eloquent
 * @property int $id
 * @property int $user_id 用户id
 * @property string|null $content 内容
 * @property int $video_id 视频id
 * @property int $classify_one 分类
 * @property int $classify_two 分类
 * @property int $classify_three 分类
 * @property int $status 状态
 * @property \Carbon\Carbon|null $created_at
 * @property \Carbon\Carbon|null $updated_at
 * @property string|null $deleted_at
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Product whereClassifyOne($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Product whereClassifyThree($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Product whereClassifyTwo($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Product whereContent($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Product whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Product whereDeletedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Product whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Product whereStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Product whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Product whereUserId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Product whereVideoId($value)
 * @property-read \App\Classify $classify
 */
class Product extends Model
{
    protected $table="product";
    use SoftDeletes;

    public function classify(){
        return $this->belongsTo('App\classify','classify_one');
    }

}